package com.info.zhiduoduo.repository.entity.partner;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("zdd_partner_share_user")
public class PartnerShareUser extends Model<PartnerShareUser> {

	@TableId(value = "userid", type = IdType.INPUT)
	private Integer userid;
	private Integer partnerid;
	private String nickname;
	private String openid;
	private String unionid;
	private String avatar;
	private Integer sex;
	private Date createtime;

	@Override
	protected Serializable pkVal() {
		return userid;
	}
}
